package com.ffox.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * <p>
 * 班级-课程-老师关系表
 * </p>
 *
 * @author freefox
 * @since 2025-08-30
 */
@Getter
@Setter
@ToString
@TableName("class_teacher")
public class ClassTeacher {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 班级ID
     */
    @TableField("class_id")
    private Long classId;

    /**
     * 课程名称
     */
    @TableField("course_name")
    private String courseName;

    /**
     * 代课老师姓名
     */
    @TableField("teacher_id")
    private String teacherId;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;
}
